﻿using IXION.BLOG.DOMAIN.CATALOG;
using IXION.BLOG.DOMAIN.COMMENT;
using IXION.BLOG.DOMAIN.TAG;
using IXION.BLOG.DOMAIN.USER;
using System;
using System.Collections.Generic;
using System.Text;

namespace IXION.BLOG.DOMAIN.BLOG
{
    /// <summary>
    /// 文章实体封装
    /// </summary>
    public class Article
    {
        /// <summary>
        /// Id
        /// </summary>
        public virtual int Id { get; set; }
        /// <summary>
        /// 文章标题
        /// </summary>
        public virtual string Title { get; set; }
        /// <summary>
        /// 文章内容
        /// </summary>
        public virtual string Content { get; set; }
        /// <summary>
        /// 文章摘要
        /// </summary>
        public virtual string Summary { get; set; }
        /// <summary>
        /// 发表时间
        /// </summary>
        public virtual DateTime PostTime { get; set; }
        /// <summary>
        /// 作者Id
        /// </summary>
        public virtual int UserId { get; set; }
        /// <summary>
        /// 阅读次数
        /// </summary>
        public virtual int ReadCount { get; set; }
        /// <summary>
        /// 评论次数
        /// </summary>
        public virtual int CommentCount { get; set; }
        /// <summary>
        /// 分类Id
        /// </summary>
        public virtual int CatalogId { get; set; }
        /// <summary>
        /// 置顶标记
        /// </summary>
        public virtual int IsTop { get; set; }
        /// <summary>
        /// 发表地址
        /// </summary>
        public virtual string PostIp { get; set; }
        /// <summary>
        /// 文章级别
        /// </summary>
        public virtual int Level { get; set; }
        /// <summary>
        /// 标签列表
        /// </summary>
        public virtual IList<Tag> Tags { get; set; }
        /// <summary>
        /// 分类
        /// </summary>
        public virtual Catalog Catalog { get; set; }
        /// <summary>
        /// 作者
        /// </summary>
        public virtual User Author { get; set; }
        /// <summary>
        /// 评论
        /// </summary>
        public virtual IList<Comment> Comments { get; set; }
    }
}
